﻿@{
    ViewBag.Title = "OpenWindown";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Open Windown</h2>
<br />
<h3>Path: @ViewBag.Path</h3>
<br />
<h3>See the result on console</h3>
<br />

<script type="text/javascript">
    window.onload = function () {
        var win = window.open();
        var doc = win.document;
        doc.open();
        doc.write("<h1>Hello Master HaKu!</h1>");
        doc.close();
    };
</script>